<template>
  <router-view />
</template>
<script>
  import { tokenName } from "@/config/settings";
  export default {
    mounted() {
      this.$nextTick(() => {
        window.addEventListener(
          "storage",
          (e) => {
            if (e.key === tokenName || e.key === null) window.location.reload();
            if (e.key === tokenName && e.value === null)
              window.location.reload();
          },
          false
        );
      });
    },
  };
</script>
